<@master template="master/master-loan" title="O2O金融合作协议下载">

<div class="detailsBox">
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>借款人信息
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">借款人姓名:</td>
						<td colspan="3">${basic.userFullName}</td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">借款人姓名拼音:</td>
						<td width="35%">${basic.userNamePinyin}</td>
						<td align="right" class="bg" width="18%">贷款次数:</td>
						<td><div class="action-ajax-load"
								data-url="<@url value='/loanrest/find_loan_account/${loanapply.loanapplyNo}/${loanapply.loanId}'/>"></div></td>
					</tr>
					<tr>
						<td align="right" class="bg">性别:</td>
						<td><@select dataSouceType="SEX" class="tabInp"
							value="${basic.sex}" renderonly="true"/> <input type="hidden"
							value="${basic.sex}" name="sex" renderonly="true">
						</td>
						<td align="right" class="bg">年龄:</td>
						<td>${expan.age}岁</td>
					</tr>
					<tr>
						<td align="right" class="bg">婚姻情况:</td>
						<td>
						<!-- 
							<@select dataSouceType="CRMFAMILYSTATUS"
							value="${expan.maritalStatus}" renderonly="true"/>
						-->
							<#if mate.spouseId!=null >
								已婚
		                    <#else>
		                    	未婚
		                    </#if>
						</td>
						<td align="right" class="bg">客户来源:</td>
						<td><@select dataSouceType="CUSTOMERSOURCE"
							value="${expan.customerSource}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg">证件类型:</td>
						<td><@select dataSouceType="OTOIDCARDTYPE" class="tabInp"
							value="${basic.documentType}" renderonly="true"/></td>
						<td align="right" class="bg">证件号码:</td>
						<td>${basic.documentNo}</td>
					</tr>
					<tr>
						<td align="right" class="bg">客户SD号:</td>
						<td>${loanapply.customerCode}</td>
						<td align="right" class="bg">客户类型</td>
						<td><@select dataSouceType="OTO_CUSTOMER_TYPE" class="tabInp"
							value="${basic.customerType}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg">发证机关:</td>
						<td>${expan.issuingAuthority}</td>
						<td align="right" class="bg">证件到期日:</td>
						<td><#if (expan.licenseExpirationDate)??>
							${expan.licenseExpirationDate?date} </#if></td>
					</tr>
					<tr>
						<td align="right" class="bg">联系电话:</td>
						<td>${basic.userPhone}<input type="hidden"
							value="${basic.userPhone}" name="userPhone"></td>
						<td align="right" class="bg">住宅电话:</td>
						<td>${expan.homePhone}</td>
					</tr>
					<tr>
						<td align="right" class="bg">银行状态:</td>
						<td><span class=" fs14"><@select
								dataSouceType="BANK_ZX_STATUS" value="${basic.bankStatus}"
								renderonly="true"/></span></td>
						<td align="right" class="bg">银行申请编号:</td>
						<td>${basic.bankApplyno}</td>
					</tr>
					<tr>
						<td align="right" class="bg">银行预审批额度:</td>
						<td><@numberFormat value="${loanapply.creditline}" /></td>
						<td align="right" class="bg">银行上浮范围:</td>
						<td><@numberFormat value="${loanapply.creditRange}" /></td>
					</tr>
					<tr>
						<td align="right" class="bg">银行签署意见：</td>
						<td colspan="3">${basic.notation}</td>
					</tr>
					<tr>
						<td align="right" class="bg">客户名称:</td>
						<td colspan="3">${loanapply.customeRname}</td>
					</tr>
					<tr>
						<td align="right" class="bg">收件地址:</td>
						<td colspan="3">${recipientAdress}</td>
					</tr>
					<tr>
						<td align="right" class="bg">户口所在地:</td>
						<td colspan="3">${borrowerCensusRegisterPD}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>


	<!-- 客户门店信息 begin 
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco1"></i>客户门店信息 <@permission
			permissionName="loanapplyUpdate"> <#if custType=="NEW" ||
			custType=="ZF"> <a class="action-ajax-btn fr edit btn_blue"
				data-url="<@url value='/customerRest/shop_add?customer_id=${basic.id}' domain='o2o.admin.crm'/>">新增门店信息</a>
			</#if> </@permission>
		</h3>
		<div class="dataBable" style="display: none;">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<thead>
					<tr>
						<th>NO.</th>
						<th>门店名称</th>
						<th>门店类型</th>
						<th>成立时间</th>
						<th>与EA合作时间</th>
						<th>行业类别</th>
						<th>门店电话</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<#list shop as sp>
					<tr>
						<td>${user_index+1}</td>
						<td>${sp.shopname}-${sp.shopcode}</td>
						<td><@select dataSouceType="OTOSHOPTYPE" class="tabInp"
							value="${sp.shoptype}" renderonly="true"/></td>
						<td><#if (sp.stupdate)??> ${sp.stupdate?date} </#if></td>
						<td><#if (sp.eacooperationdate)??>
							${sp.eacooperationdate?date} </#if></td>
						<td><@select dataSouceType="O2OVOCATION" class="tabInp"
							value="${sp.vocation}" renderonly="true"/></td>
						<td>${sp.telephone}</td>
						<td><a target="_blank"
							href="<@url value='/customer/getShopInfo?customer_id=${sp.customerId}&shopcode=${sp.shopcode}' domain='o2o.admin.crm'/>">详情</a>
							<@permission permissionName="loanapplyUpdate"> <#if
							custType=="NEW" || custType=="ZF" > <a class="action-ajax-btn"
							href="<@url value='/customerRest/shop_edit?customer_id=${sp.customerId}&shopcode=${sp.shopcode}' domain='o2o.admin.crm'/>">修改</a>
							</#if> </@permission></td>
					</tr>
					</#list>
				</tbody>
			</table>
		</div>
	</div>
	-->
	<!-- 客户门店信息 end -->
	<!-- 借款人信息确认 begin -->
<div class="detailsBox">
	<div class="openBox">
		<h3>
			<i class="jtIco"></i>借款人信息确认
		</h3>
		<div class="detaiTab">
			<form action="<@url value='/loanDetail/editShop'/>"
				method="post" class="action-ajax-form">
				<input id="customerShopId" type="hidden" value="${mainShop.customerShopId}" name="customerShopId">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="right" class="bg" width="18%">乙方(借款人)姓名:</td>			
							<td width="25%">${loanUser.userFullName}</td>
							<td align="right" class="bg">借款人身份证号码:</td>
							<td>${loanUser.documentNo}</td>
						</tr>
						<tr>
							<td align="right" class="bg">借款人电话:</td>
							<td>${loanUser.userPhone}</td>
							<td align="right" class="bg">借款人地址:</td>
							<td>${recipientAdress}</td>
						</tr>
						<tr>
							<td align="right" class="bg">门店名称:</td>
							<td>${mainShop.shopname}</td>
							<td align="right" class="bg">门店实际控制人:</td>
							<td><input name="controllername"  id="controllername" value="${mainShop.controllername}" size="20" type="text"/></td>
						</tr>
						<tr>
							<td align="right" class="bg">门店实际控制人身份证号码:</td>
							<td>
						         <#if mainShop.controllerIdnum=='' >
							         <input name="controllerIdnum"  id="controllerIdnum" value="${basic.documentNo}" size="20" type="text"/> 
		                          <#else>
		                             <input name="controllerIdnum"  id="controllerIdnum" value="${mainShop.controllerIdnum}" size="20" type="text"/>
		                         </#if>
							</td>
							<td align="right" class="bg">门店实际控制人电话号码:</td>
							<td>
							    <#if mainShop.controllerMobile=='' >
							       <input name="controllerMobile"  id="controllerMobile" value="${basic.userPhone}" size="20" type="text"/>
							     <#else>
		                             <input name="controllerMobile"  id="controllerMobile" value="${mainShop.controllerMobile}" size="20" type="text"/>
		                         </#if>
							</td>
						</tr>
						<tr>
							<td colspan="4" align="center"><input type="submit" value="保存"
								class="btn_auto_30 btn_blue" /><span class="red fs14 ml10"></span></td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
      </div>
      </div>
   <!-- 借款人信息确认 end -->
 </div>
 
		<div class=" mtb20 tac">
			
			 <a class="action-ajax-btn btn_auto_30 btn_blue" target="_blanghhghgk"  href="<@url value='/checkShopInfo?loanapplyNo=${loanapply.loanapplyNo}&shopId=${mainShop.customerShopId}'/>">根据系统数据直接打印协议</a>&nbsp;
		</div>
</@master>